package com.zheng.study.web.shiro.realm;

/**
 * 二维码登录的 token
 * ============================================================================
 * author : fallenpanda
 * createDate:  2018/8/17 。
 * ============================================================================
 */
public class StatelessQRCodeLoginToken extends StatelessBaseToken {
	private static final long serialVersionUID = 8697169772207170151L;

	private String uid;
	private String code;

	public StatelessQRCodeLoginToken(String uid, String code) {
		this.uid = uid;
		this.code = code;
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Object getPrincipal() {
		return uid;
	}

	public Object getCredentials() {
		return code;
	}
}
